<template>
  <el-card >
    <div class="box">
      <img :src="useUserStore.avatar" alt="" class="avatar" />
      <div class="bottom">
        <h3 class="title">{{ gettimer() }}好{{ useUserStore.username }}</h3>
        <p class="subtitle">硅谷甄选运营平台</p>
      </div>
    </div>
    
  </el-card>
  <div class="bottoms">
    <svg-icon name="welcome" width="500px" height="500px"></svg-icon>
  </div>
</template>

<script setup lang="ts">
//引入用户的信息获取当
import userStore from "@/store/modules/user";
import { gettimer } from "@/utils/time";
let useUserStore = userStore();
</script>

<style scoped lang="scss">
.box {
  display: flex;
  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50px;
  }
  .bottom{
    margin-left: 20px;
    .title{
      font-size: 25px;
      font-weight: 600;
      margin-bottom: 30px;
      padding-top: 15px;
    }
    .subtitle{
      font-style: italic;
      color: skyblue;
    }
  }
}
.bottoms{
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
</style>
